from enum import Enum


class TaskStatusEnum(Enum):

    @property
    def code(self):
        return self.value[0]

    @property
    def label(self):
        return self.value[1]

    PENDING = ("pending","未开始")
    RUNNING = ("running","进行中")
    DONE = ("done","已完成")
